<!DOCTYPE html>
<html lang="zh-cn">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="generator" content="Hugo 0.16" />
    <title>体验andriod</title>
    
    
    
    <meta name="description" content="description" />
    <meta name="keywords" content='first,article' />
    
        <meta name="author" content="bk201sama" />
    
    
    <link href="" rel="alternate" type="application/rss+xml" title="fuck everyday" />
    <link rel="stylesheet" href="https://bk201sama.github.io/css/bootstrap.min.css" />
    <link rel="stylesheet" href="https://bk201sama.github.io/css/highlightjs-themes/androidstudio.css" />
    <link rel="stylesheet" href="https://bk201sama.github.io/css/font-awesome.min.css" />
    <link rel="stylesheet" href="https://bk201sama.github.io/css/phlat.css" />
    
        
            <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
            <script>
                (adsbygoogle = window.adsbygoogle || []).push({
                    google_ad_client: "ca-pub-XXXXXX",
                    enable_page_level_ads: true
                });
            </script>
        
    
</head>

    <body>
        <nav class="navbar navbar-default navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/">fuck everyday</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                
                    <li>
                        <a href="/">
                            Home
                        </a>
                    </li>
                
                    <li>
                        <a href="/about/">
                            About
                        </a>
                    </li>
                
            </ul>
        </div>
    </div>
</nav>

        <div id="top" class="container">
            <div class="row" id="content-main">
                <div class="col-md-8">
                    <div class="row">
    <div class="col-md-12 content-card">
        <h1>体验andriod</h1>
        
            
            <ul class="list-inline meta">
                <li><i class="fa fa-calendar"></i>March 15, 2016</li>
                <li><i class="fa fa-user"></i>bk201sama</li>
                
                    
                    <li><i class="fa fa-folder"></i><a href="https://bk201sama.github.io/categories/java">java</a></li>
                
            </ul>
        
        
    <ul class="list-inline share" style="margin-top: 15px; margin-left: 0px">
        <li class="facebook-share"><a target="_blank" href="http://www.facebook.com/sharer.php?u=https%3a%2f%2fbk201sama.github.io%2f2016%2f03%2f%25E4%25BD%2593%25E9%25AA%258Candriod%2f"><i class="fa fa-facebook fa-lg"></i>Facebook</a></li>
        <li class="googleplus-share"><a target="_blank" href="https://plus.google.com/share?url=https%3a%2f%2fbk201sama.github.io%2f2016%2f03%2f%25E4%25BD%2593%25E9%25AA%258Candriod%2f"><i class="fa fa-google-plus fa-lg"></i>Google+</a></li>
        <li class="twitter-share"><a target="_blank" href="https://twitter.com/share?url=https%3a%2f%2fbk201sama.github.io%2f2016%2f03%2f%25E4%25BD%2593%25E9%25AA%258Candriod%2f&amp;text=%e4%bd%93%e9%aa%8candriod"><i class="fa fa-twitter fa-lg"></i>Twitter</a></li>
        <li class="reddit-share"><a target="_blank" href="http://reddit.com/submit?url=https%3a%2f%2fbk201sama.github.io%2f2016%2f03%2f%25E4%25BD%2593%25E9%25AA%258Candriod%2f&amp;title=%e4%bd%93%e9%aa%8candriod"><i class="fa fa-reddit fa-lg"></i>Reddit</a></li>
        <li class="linkedin-share"><a target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&url=https%3a%2f%2fbk201sama.github.io%2f2016%2f03%2f%25E4%25BD%2593%25E9%25AA%258Candriod%2f"><i class="fa fa-linkedin fa-lg"></i>LinkedIn</a></li>
        <li class="stumbleupon-share"><a target="_blank" href="http://www.stumbleupon.com/submit?url=https%3a%2f%2fbk201sama.github.io%2f2016%2f03%2f%25E4%25BD%2593%25E9%25AA%258Candriod%2f&amp;title=%e4%bd%93%e9%aa%8candriod"><i class="fa fa-stumbleupon fa-lg"></i>StumbleUpon</a></li>
    </ul>


        

<p>抽空把andriod看了下,本文只是笔记(未完).</p>

<h4 id="厨具">厨具</h4>

<p>首先<a href="https://github.com/inferjay/AndroidDevTools">资源站</a>上下载Android Studio，如果能fq自然可以去<a href="http://developer.android.com/intl/zh-cn/sdk/index.html">官网</a>下载。当然fq软件最好有一款。</p>

<h4 id="菜谱">菜谱</h4>

<p>可以参照<a href="http://developer.android.com/intl/zh-cn/training/basics/firstapp/creating-project.html">官方指南</a>创建一个应用。</p>

<h3 id="食料处理">食料处理</h3>

<h4 id="流程">流程</h4>

<p>建工程-&gt;起应用，域名，工程包名-&gt;设置项目位置-&gt;选择运行平台-&gt;选择sdk最小支持-&gt;选择Activity模板-&gt;更改Activity Name， Layout Name， Menu Resource Name-&gt;启动虚拟机-&gt;运行。</p>

<h4 id="分析">分析</h4>

<ul>
<li>app文件夹

<ul>
<li>mainifests文件夹</li>
<li>AndroidManifest.xml <code>类似web.xml的配置文件</code></li>
<li>java文件夹 <code>源码</code></li>
<li>res <code>资源</code></li>
<li>drawable</li>
<li>layout <code>默认布局</code></li>
<li>layout-land <code>横向布局</code></li>
<li>menu</li>
<li>mipmap <code>启动图标</code></li>
<li>values<br /></li>
</ul></li>
<li>gradle脚本 <code>gradle，一款与maven差不多构建工具</code></li>
</ul>

<p>###烹制</p>

<p>####布局</p>

        
    <ul class="list-inline tags" style="margin-top: 15px; margin-left: 0px">
        
            <li style=""><a href="https://bk201sama.github.io/tags/first">first</a></li>
        
            <li style=""><a href="https://bk201sama.github.io/tags/article">article</a></li>
        
    </ul>


    </div>
</div>

                    
    
        <div class="row">
            <div class="col-md-12 content-card">
                <div id="disqus_thread"></div>
                <script>
                    (function() {
                        if (window.location.hostname == "localhost") {
                            document.write("Disqus comments are unavailable while serving on localhost or 127.0.0.1");
                            return;
                        }
                        var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
                        var disqus_shortname = 'shortname';
                        dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
                        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
                    })();
                </script>
                <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
            </div>
        </div>
    


                </div>
                <div class="col-md-4">
                    <div class="row">
    <div class="col-md-11 col-md-offset-1 card">
        <h5>Search</h5>
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form">
            <div class="input-group">
                <input class="form-control" type="search" name="q" />
                <span class="input-group-btn">
                    <button class="btn btn-custom" type="submit"><span class="glyphicon glyphicon-search"></span></button>
                </span>
            </div>
            <input type="hidden" name="q" value="site:https://bk201sama.github.io/">
        </form>
    </div>
</div>

                    <div class="row">
    <div class="col-md-11 col-md-offset-1 card">
        <h5>Recent Posts</h5>
        <ul class="list-unstyled posts-recent">
            
                <li><a href="https://bk201sama.github.io/2016/03/2016%E5%B9%B4%E9%A1%B9%E7%9B%AE%E6%80%BB%E7%BB%93/">2016年项目总结</a></li>
            
                <li><a href="https://bk201sama.github.io/2016/03/java%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86%E6%95%B4%E7%90%86/">java基础知识整理</a></li>
            
                <li><a href="https://bk201sama.github.io/2016/03/openwrt%E5%88%9D%E4%BD%93%E9%AA%8C/">openwrt初体验</a></li>
            
                <li><a href="https://bk201sama.github.io/2016/03/%E4%B8%A2%E6%89%8B%E6%9C%BA%E6%84%9F%E6%83%B3/">丢手机感想</a></li>
            
                <li><a href="https://bk201sama.github.io/2016/03/%E4%BD%93%E9%AA%8Candriod/">体验andriod</a></li>
            
        </ul>
    </div>
</div>

                    
    
        <div class="row">
            <div class="col-md-11 col-md-offset-1 card">
                <ins class="adsbygoogle"
                    style="display:block"
                    data-ad-client="ca-pub-XXXXXX"
                    data-ad-slot="9997956765"
                    data-ad-format="auto">
                </ins>
            </div>
        </div>
    


                    
    
        <div class="row">
            <div class="col-md-11 col-md-offset-1 card">
                <h5>categories</h5>
                <ul class="list-unstyled posts-recent">
                    
                        <li><a href="https://bk201sama.github.io/categories/hardware">hardware</a></li>
                    
                        <li><a href="https://bk201sama.github.io/categories/java">java</a></li>
                    
                        <li><a href="https://bk201sama.github.io/categories/life">life</a></li>
                    
                        <li><a href="https://bk201sama.github.io/categories/javascript">javascript</a></li>
                    
                </ul>
            </div>
        </div>
    

    


                    <div class="row">
    <div class="col-md-11 col-md-offset-1 card">
        <h5>Support This Site</h5>
        <p>
            If my blog was helpful to you, then please consider visiting my
            <a href="http://amzn.com/w/1YU2424SGEF1B">Amazon Wishlist</a> or donating via <a href="https://paypal.me/nraboy">Paypal</a>
            or <a href="https://cash.me/$nraboy">Square Cash</a>
        </p>
    </div>
</div>

                </div>
            </div>
        </div>
        <footer class="footer">
    <div class="container">
        <div class="row">
            <div class="col-md-8 col-xs-6">
    <ul class="list-inline links">
        
            <li>
                <a href="/privacy-policy/">
                    Privacy Policy
                </a>
            </li>
        
    </ul>
</div>

            <div class="col-md-4 col-xs-6">
    <ul class="list-inline social-media">
        
        
        
        
        
        
        
        
        
        
        
    </ul>
</div>

        </div>
        <div class="row">
            <div class="col-md-12">
                <p>
                    <a href="https://github.com/nraboy/hugo-phlat-theme">Phlat Theme</a> designed and built by <a href="http://www.nraboy.com">Nic Raboy</a> in San Francisco, California.
                </p>
            </div>
        </div>
    </div>
</footer>

        <div id="back-to-top" class="hidden">
    <a href="#top" class="well well-sm" onclick="$('html,body').animate({scrollTop:0},'slow');return false;">
        <i class="glyphicon glyphicon-chevron-up"></i> Back to Top
    </a>
</div>
<script src="https://bk201sama.github.io/js/jquery-2.2.1.min.js"></script>
<script src="https://bk201sama.github.io/js/bootstrap.min.js"></script>
<script src="https://bk201sama.github.io/js/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script>
    if(($(window).height() + 100) < $(document).height()) {
        $('#back-to-top').removeClass('hidden').affix({
            offset: {
                top: 100
            }
        });
    }
</script>

    
        <script>
            
            [].forEach.call(document.querySelectorAll('.adsbygoogle'), function() {
                (adsbygoogle = window.adsbygoogle || []).push({});
            });
        </script>
    


    
    <script>
        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
        (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
        m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
        ga('create', 'UA-XXXXX-YY', 'auto');
        ga('send', 'pageview');
    </script>




    </body>
</html>
